package c.h.a.n0;

import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import c.b.a.a.a;
import c.h.a.m0.i;
import com.liuzh.deviceinfo.settings.SettingsActivity;
import com.liuzh.deviceinfo.view.SettingsItemView;
import java.util.Objects;

/* compiled from: lambda */
public final /* synthetic */ class b implements OnClickListener {
    public final /* synthetic */ SettingsItemView a;
    public final /* synthetic */ String b;
    public final /* synthetic */ int[] c;
    public final /* synthetic */ CharSequence[] d;

    public /* synthetic */ b(SettingsItemView settingsItemView, String str, int[] iArr, CharSequence[] charSequenceArr) {
        this.a = settingsItemView;
        this.b = str;
        this.c = iArr;
        this.d = charSequenceArr;
    }

    public final void onClick(DialogInterface dialogInterface, int i) {
        SettingsItemView settingsItemView = this.a;
        String str = this.b;
        int[] iArr = this.c;
        CharSequence[] charSequenceArr = this.d;
        Objects.requireNonNull(settingsItemView);
        i iVar = i.a;
        iVar = i.a;
        a.o(i.b, str, iArr[i]);
        settingsItemView.u.setText(charSequenceArr[i]);
        dialogInterface.dismiss();
        SettingsItemView.a aVar = settingsItemView.y;
        if (aVar != null) {
            i = iArr[i];
            SettingsActivity settingsActivity = SettingsActivity.this;
            i = SettingsActivity.q;
            if (settingsActivity.p != settingsActivity.x(i.c())) {
                settingsActivity.recreate();
            }
        }
    }
}
